﻿using System;
using System.Linq;
using System.Text;
using SIE.SCADA.SqlSugar;

namespace Models
{
    ///<summary>
    ///产品对应的工艺流程及工序工步表
    ///</summary>
    [SugarTable("scada_process_record")]
    public partial class scada_process_record
    {
           public scada_process_record(){


           }
           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey=true,IsIdentity =true)]
           public int id {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string serial_number {get;set;}

           /// <summary>
           /// Desc:产品编码
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string matid {get;set;}

           /// <summary>
           /// Desc:产品描叙
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string matdesc {get;set;}

           /// <summary>
           /// Desc:Mbom版本
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string mbom {get;set;}

           /// <summary>
           /// Desc:工艺流程编码
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string techprocess {get;set;}

           /// <summary>
           /// Desc:工艺流程版本
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string small_version {get;set;}

           /// <summary>
           /// Desc:工序名称
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string disque_name {get;set;}

           /// <summary>
           /// Desc:工序编码
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string disque_code {get;set;}

           /// <summary>
           /// Desc:此工序是第几道序
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? disque_qty {get;set;}

           /// <summary>
           /// Desc:工艺流程总共多少工序
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? disque_sum {get;set;}

           /// <summary>
           /// Desc:工步名称
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string jobstep {get;set;}

           /// <summary>
           /// Desc:工步编码
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string jobstep_code {get;set;}

           /// <summary>
           /// Desc:创建人
           /// Default:
           /// Nullable:True
           /// </summary>           
           //public string CreateUser_Str {get;set;}

           /// <summary>
           /// Desc:创建时间
           /// Default:
           /// Nullable:True
           /// </summary>           
           //public DateTime? CreateTime_Dt {get;set;}

           /// <summary>
           /// Desc:工序的第几工步
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? jobstep_sum { get;set;}

           /// <summary>
           /// Desc:
           /// Default:CURRENT_TIMESTAMP
           /// Nullable:True
           /// </summary>           
           public DateTime? createtime_dt {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string createuser_str {get;set;}

           /// <summary>
           /// Desc:
           /// Default:CURRENT_TIMESTAMP
           /// Nullable:True
           /// </summary>           
           public DateTime? modifytime_dt {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string remark_str {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public bool? isenable_bit {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public bool? isactive_bit {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public bool? issync_bit {get;set;}

           /// <summary>
           /// Desc:
           /// Default:1
           /// Nullable:True
           /// </summary>           
           public int? control_mode {get;set;}

           /// <summary>
           /// Desc:状态
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public int state_int {get;set;}

           /// <summary>
           /// Desc:工时
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public decimal workhour_num {get;set;}

           /// <summary>
           /// Desc:工单号
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string disidno {get;set;}

           /// <summary>
           /// Desc:是否强制过站
           /// Default:
           /// Nullable:True
           /// </summary>           
           public short? isbypass {get;set;}

           /// <summary>
           /// Desc:强制过站用户
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string bypassuser {get;set;}

           /// <summary>
           /// Desc:工时
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public decimal aworkhour_num {get;set;}

           /// <summary>
           /// Desc:结束时间
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? endtime_dt {get;set;}

           /// <summary>
           /// Desc:开始时间
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? starttime_dt {get;set;}

           /// <summary>
           /// Desc:操作员
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string opertor {get;set;}

           /// <summary>
           /// Desc:使用站位
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string stationid {get;set;}
           /// <summary>
           /// 
           /// </summary>
           public int? torquetimes { get; set; }
            /// <summary>
            /// 
            /// </summary>
           public int? curtimes { get; set; }


        /// <summary>
        /// 派工单工序编码
        /// </summary>
        public string op_group { get; set; }

        
        /// <summary>
        /// KJF 20210406 新增
        /// 设备编码
        /// </summary>
        public string equipmentcode { get; set; }


        /// <summary>
        /// KJF 20210409 新增
        /// 用户ID
        /// </summary>
        public string userid { get; set; }

        /// <summary>
        /// KJF 20210409 新增
        /// 工单ID
        /// </summary>
        public int woid { get; set; }

       // public string barcode { get; set; }
    }
}
